<template>
  <div class="container" style="margin-bottom:50px">
    <p class="title">订单详情 <el-button type="primary" class="btn" @click="$router.back()">返回</el-button></p>
    <el-form ref="form" label-width="80px" style="width: 80%" class="next">
      <el-form-item label="基础信息">
        <label for="">订单编号: </label> <span>{{ info.orderNo }}</span> <br>
        <label for="">提交提现时间: </label> <span>{{ info.createTime }}</span><br>
      </el-form-item>
      <el-form-item label="金融信息">
        <label for="">提现金额: </label> <span>{{ info.amount }}</span> <br>
        <label for="">税费: </label><span>{{ info.taxesAndDues }}</span><br>
        <label for="">实发报酬: </label><span>{{ info.arrivalAmount }}</span><br>
        <!-- <label for="">支付时间: </label><span>{{ info.payTime }}</span><br> -->
      </el-form-item>
      <el-form-item label="卡号信息">
        <label for="">开户银行: </label><span>{{ info.dueBank }}</span> <br>
        <label for="">银行账号: </label><span>{{ info.bankNo }}</span><br>
      </el-form-item>
      <el-form-item label="用户信息">
        <label for="">用户ID: </label> <span>{{ info.userId }}</span> <br>
        <label for="">姓名: </label><span>{{ info.realName }}</span><br>
        <label for="">手机号: </label><span>{{ info.phone }}</span><br>
        <label for="">身份证号: </label><span>{{ info.idCardNo }}</span><br>
        <label for="">用户身份: </label><span>{{ ['普通用户', '经纪人', '城市合伙人','品牌合伙人'][info.roleType] }}</span><br>
      </el-form-item>
    </el-form>
    <el-dialog v-dialogDrag title="报告详情" :visible.sync="dialogVisible" width="430px">
      <iframe
        frameborder="no"
        border="0"
        marginwidth="0"
        marginheight="0"
        scrolling="yes"
        allowtransparency="yes"
        style="width:400px;height:800px"
        :src="info.reportUrl"
      />
    </el-dialog>

  </div>
</template>

<script>
export default {
  data() {
    return {
      dialogVisible: false,
      info: {}
    }
  },
  created() {
    this.$get(`/web/brokerageWithdrawOrder/getOrderInfoWeb?orderId=${this.$route.query.id}`).then(res => {
      if (res.data.code === '0') {
        console.log(res.data.data)
        this.info = res.data.data
      } else {
        this.$message.error(res.data.message)
      }
    })
  }

}
</script>

<style lang="scss" scoped>
.container {
  .el-form-item {
    /deep/ .el-form-item__label {
      font-weight: 700 !important;
    }
  }

  width: 80%;
  margin: 0 auto;
  .title {
    position: relative;
    height: 80px;
    font-size: 24px;
    line-height: 80px;
    text-align: center;
    .btn{
      position: absolute;
      right: 0;
      top: 25px;
    }
  }
  label {
    width: 200px;
    display: inline-block;
    text-align: center;
  }
  .next{
    padding-bottom: 60px;
  }
}
</style>

